/*
* numerador.x: Remote message printing protocol
*/

struct register_agent_params
{
    string host_name<256>;
    string agent_name<256>;
};

struct register_host_params
{
    string broker_name<256>;
    string host_name<256>;
};

struct get_host_id_by_agent_params
{
    string broker_name<256>;
    string agent_name<256>;
};

program ROUTINGPROG
{
	version ROUTINGVERS
	{
	    int REGISTERAGENT(register_agent_params) = 1;
	    int UNREGISTERAGENT(register_agent_params) = 2;
	    int REGISTERHOST(register_host_params) = 3;
	    int UNREGISTERHOST(register_host_params) = 4;
	    int GETHOSTIDBYAGENT(get_host_id_by_agent_params) = 5;
	    int GETHOSTID(register_host_params) = 6;
	} = 1;
} = 1002;
